<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\business\BusinessVaccineSet */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Business Vaccine Sets', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>


<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
            <?= Html::a('返回','javascript:history.back(-1)'); ?>
            <?= Html::encode($this->title) ?>
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">

                <div class="business-vaccine-set-view">

                    <p>
                        <?= Html::a('更新', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
                        <?= Html::a('删除', ['delete', 'id' => $model->id], [
                            'class' => 'btn btn-danger',
                            'data' => [
                                'confirm' => '您确定删除此项吗?',
                                'method' => 'post',
                            ],
                        ]) ?>
                    </p>

                    <?= DetailView::widget([
                        'model' => $model,
                        'attributes' => [
                            'id',
                            'batch',
                            'vaccinename',
                            [
                                'attribute' => 'date',
                                'value' => function($model){
                                    return date('Y-m-d',$model->date);
                                }
                            ],
                            [
                                'attribute' => 'createtime',
                                'value' => function($model){
                                    return date('Y-m-d',$model->createtime);
                                }
                            ]
                        ],
                    ]) ?>

                </div>
            </div>
        </div>
    </section>
</section>